import request from '@/utils/request'
// 查询所有
export function selectAll() {
  return request({
    url: '/pettype/findAll',
    method: 'get'
  })
}
// 新增
export function add(query) {
  return request({
    url: '/pettype/addPetType',
    method: 'post',
    data: query
  })
}
// 修改
export function update(query) {
  return request({
    url: '/pettype/updatePetType',
    method: 'put',
    data: query
  })
}
// 删除
export function del(pettypeId) {
  return request({
    url: '/pettype/delPetType',
    method: 'delete',
    params: { pettypeId }
  })
}
